/**
 * 
 */
package mdb.com.vn.persist;

import java.math.BigDecimal;
import java.util.List;

import mdb.com.vn.model.Casa;

/**
 * @author tu.dod
 *
 */
public interface CasaDAO extends AbstractDAO<Casa, Integer> {
	public List<Casa> getAllCasas();
	public List<Casa> findByPersionalType(int type);
	public List<Casa> findByCorporateType(int type);
	public List<Casa> findByCode(String code);
	public List<Casa> findByCustomerRef(String customerId);
	public int getSCardCSAvailable (String customerRef);
	public int getSCardCSAvailableException (String customerRef,String accountException);
	public int countThanksCard();
	public BigDecimal sumAmount();
}
